<%-- 
    Document   : vmesnik
    Created on : 28.6.2011, 0:29:58
    Author     : tincek
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <link rel="stylesheet" href="css/style.css" type="text/css">
        <title>JSP Page</title>
    </head>
    <body>
        <div id="glavni">
        <div id="levi">
            <a href="index.jsp">Glavna stran</a><br>
            <a href="vmesnik.jsp?Stran=dogodki.jsp">Dogodki</a><br>
            <a href="vmesnik.jsp?Stran=clani.jsp">Člani</a><br>
            <a href="dodajDogodek.jsp">Dodaj dogodek</a><br>
            <a href="logout.jsp">Odjava</a><br>
        </div>
        <div id="desni">
            <% String Stran = request.getParameter("Stran");
                        if (Stran == null) {
                            Stran = "dogodki.jsp";
                        } else if (Stran.equals("dogodki.jsp")) {
                            Stran = "dogodki.jsp";
                        } else if (Stran.equals("clani.jsp")) {
                            Stran = "clani.jsp";

                        }  else if (Stran.equals("urediDogodek.jsp")) {
                            Stran = "urediDogodek.jsp";

                        }

            %>
            <jsp:include page="<%=Stran%>"></jsp:include>

        </div>
        </div>

    </body>
</html>
